package com.sjb.sixteen_journey_backend.enu;


public enum Gender {
    MAN(0, "男"),
    WANMAN(1, "女");

    private int genderStatus;
    private String gender;
    Gender(int genderStatus, String gender) {
        this.genderStatus = genderStatus;
        this.gender = gender;
    }
    public static String getGender(int genderStatus) {
        for (Gender gender : values()) {
            if (gender.genderStatus == genderStatus) {
                return gender.gender;
            }
        }
        return null;
    }
}
